<php>
	$this->display(tpl('head',true));
</php>
<style>
	.layui-table thead tr th{
		text-align: center;
	}
</style>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
  	<legend>分类管理</legend>
</fieldset>
<table class="layui-table" cellspacing="0" cellpadding="0" border="0"  lay-filter="demoEvent">
	<thead>
		<tr>
			<th width="40">cid</th>
			<th>名称</th>
			<th width="100">记录集</th>
			<th width="130">操作</th>
		</tr>
	</thead>
	<tbody>
		<foreach array="data">
		<tr>
			<td align="center">{{$row['cid'] }}</td>
			<td>{{$row['name'] }}</td>
			<td align="center">{{$row['num'] }}</td>
			<td align="center">
				<a class="layui-btn layui-btn-sm layui-btn-warm" href="{{PLUGIN_ACTION }}category/edit/cid_{{$row['cid'] }}">编辑</a>
				<a class="layui-btn layui-btn-sm layui-btn-danger" href="{{PLUGIN_ACTION }}category/del/cid_{{$row['cid'] }}">删除</a>
			</td>
		</tr>
		</foreach>
	</tbody>
</table>
<php>
	$this->display(tpl('foot',true));
</php>
